import request from '@/utils/request'

// 查询巡检人员-地点关联列表
export function listPlaces(query) {
  return request({
    url: '/inspection/places/list',
    method: 'get',
    params: query
  })
}

// 查询巡检人员-地点关联详细
export function getPlaces(id) {
  return request({
    url: '/inspection/places/' + id,
    method: 'get'
  })
}

// 新增巡检人员-地点关联
export function addPlaces(data) {
  return request({
    url: '/inspection/places',
    method: 'post',
    data: data
  })
}

// 修改巡检人员-地点关联
export function updatePlaces(data) {
  return request({
    url: '/inspection/places',
    method: 'put',
    data: data
  })
}

// 删除巡检人员-地点关联
export function delPlaces(id) {
  return request({
    url: '/inspection/places/' + id,
    method: 'delete'
  })
}
